package cn.smvc.sys.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.apache.commons.dbutils.BasicRowProcessor;
import org.apache.commons.dbutils.BeanProcessor;
import org.apache.commons.dbutils.GenerousBeanProcessor;
import org.apache.commons.dbutils.RowProcessor;
import org.springframework.stereotype.Repository;

import cn.smvc.sys.dao.SysLogDao;
import cn.smvc.sys.entity.SysLog;

@Repository("sysLogDao")
public class SysLogDaoImpl implements SysLogDao{
	/*
	 * 这两个是处理数据库表字段下划线的，
	 * 		与实体类中的属性对应（驼峰规则）
	 */
	BeanProcessor bean = new GenerousBeanProcessor();
	RowProcessor processor = new BasicRowProcessor(bean);
	
	@Override
	public List<SysLog> findAll(SysLog log) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public SysLog findOne(String id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int save(SysLog log) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(SysLog log) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(String id) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int count(String where) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<SysLog> findBySql(String sql) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<SysLog> findByWhere(String where) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<SysLog> findPage(String where, int page, int limit, String orderBy) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

}
